package org.dromara.nursing.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.nursing.domain.MsAiChat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * AI聊天视图对象 ms_ai_chat
 *
 * @author Lion Li
 * @date 2025-04-23
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = MsAiChat.class)
public class MsAiChatVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 聊天ID
     */
    @ExcelProperty(value = "聊天ID")
    private Long id;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 用户名称
     */
    @ExcelProperty(value = "用户名称")
    private String userName;

    /**
     * 会话ID
     */
    @ExcelProperty(value = "会话ID")
    private String sessionId;

    /**
     * 用户问题
     */
    @ExcelProperty(value = "用户问题")
    private String query;

    /**
     * AI回答
     */
    @ExcelProperty(value = "AI回答")
    private String response;

    /**
     * 提问时间
     */
    @ExcelProperty(value = "提问时间")
    private Date queryTime;

    /**
     * 回答时间
     */
    @ExcelProperty(value = "回答时间")
    private Date responseTime;

    /**
     * 响应时长(毫秒)
     */
    @ExcelProperty(value = "响应时长(毫秒)")
    private Long duration;

    /**
     * 使用模型
     */
    @ExcelProperty(value = "使用模型")
    private String model;

    /**
     * IP地址
     */
    @ExcelProperty(value = "IP地址")
    private String ipAddress;

    /**
     * 设备信息
     */
    @ExcelProperty(value = "设备信息")
    private String deviceInfo;

    /**
     * 错误信息
     */
    @ExcelProperty(value = "错误信息")
    private String errorMsg;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remarks;


}
